package NewTmas;

import javax.swing.*;
import java.awt.event.ActionEvent;

public class ClickAction extends AbstractAction {
private JButton button;

public ClickAction(JButton button) {
    this.button = button;
}

public void actionPerformed(ActionEvent e) {
    button.doClick();
}
}
